﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Shapes;

namespace GameOfLife
{
    public static class Util
    {
        //public static Point GetAbsoluteCoordinates(Point gridCoordinates)
        //{
        //    // Find corresponding brick
        //    int absX = ((int)gridCoordinates.X * Brick.Brick.BrickWidth) + Map.Xoffset;
        //    int absY = ((int)gridCoordinates.Y * Brick.Brick.BrickHeight) + Map.Yoffset;

        //    return new Point(absX, absY);
        //}

        //public static Point GetRelativeCoordinates(Point absoluteCoordinates)
        //{
        //    int relX = ((int)(absoluteCoordinates.X - Map.Xoffset) / Brick.Brick.BrickWidth);
        //    int relY = ((int)(absoluteCoordinates.Y - Map.Yoffset) / Brick.Brick.BrickHeight);

        //    return new Point(relX, relY);
        //}
    }
}
